package com.crm.system.domain;

import java.util.Date;

import com.crm.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.crm.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用药情况对象 bie_medication
 * 
 * @author crm
 * @date 2021-05-10
 */
public class BieMedication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用药情况编号 */
    private String medicationId;

    /** 问诊编号 */
    @Excel(name = "问诊编号")
    private String inquiryId;

    /** 患者编号 */
    @Excel(name = "患者编号")
    private String patientId;

    /** 用药情况 */
    @Excel(name = "用药情况")
    private String medication;

    /** 服药时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服药时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date medicationTime;

    public void setMedicationId(String medicationId) 
    {
        this.medicationId = medicationId;
    }

    public String getMedicationId() 
    {
        return medicationId;
    }
    public void setInquiryId(String inquiryId) 
    {
        this.inquiryId = inquiryId;
    }

    public String getInquiryId() 
    {
        return inquiryId;
    }
    public void setPatientId(String patientId) 
    {
        this.patientId = patientId;
    }

    public String getPatientId() 
    {
        return patientId;
    }
    public void setMedication(String medication) 
    {
        this.medication = medication;
    }

    public String getMedication() 
    {
        return medication;
    }
    public void setMedicationTime(Date medicationTime) 
    {
        this.medicationTime = medicationTime;
    }

    public Date getMedicationTime() 
    {
        return medicationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("medicationId", getMedicationId())
            .append("inquiryId", getInquiryId())
            .append("patientId", getPatientId())
            .append("medication", getMedication())
            .append("medicationTime", getMedicationTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
